package com.yansu.own.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * banner与下级banner映射表
 */
@Data
@TableName("sys_banner_map")
public class SysBannerMap implements Serializable {

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * banner-id
     */
    @TableField("banner_id")
    private Long bannerId;

    /**
     * banner层级
     */
    @TableField("sort_number")
    private Integer sortNumber;

    /**
     * 图片url
     */
    @TableField("picture_url")
    private String pictureUrl;

    /**
     * 文章url
     */
    @TableField("text_url")
    private String textUrl;

    /**
     * 创建人id
     */
    @TableField("create_id")
    private Long createId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}